package com.imti.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.imti.dao.DeskWorkDao;
import com.imti.entity.DeskWork;
import com.imti.entity.dto.DeskWorkDto;
import com.imti.service.DeskWorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (DeskWork)表服务实现类
 *
 * @author makejava
 * @since 2023-02-01 12:13:29
 */
@Service("deskWorkService")
public class DeskWorkServiceImpl extends ServiceImpl<DeskWorkDao, DeskWork> implements DeskWorkService {

    @Autowired
    private DeskWorkDao deskWorkDao;

   /* @Override
    public DeskWork findAllDeskWorkByName(String deskName) {
        return deskWorkDao.findAllDeskWorkByName(deskName);
    }
    @Override
    public List<DeskWork> findDeskWorkByName(String deskName){
        return deskWorkDao.findDeskWorkByName(deskName);
    }*/

    @Override
    public List<DeskWorkDto> findDeskWorkById(Integer deskId){
        return deskWorkDao.findDeskWorkById(deskId);
    }

    @Override
    public List<DeskWork> findAllDeskWork(){
        return  deskWorkDao.findAllDeskWork();
    }
}

